<script setup>
import {onBeforeMount} from 'vue'
import {reLoginUser} from './utils/user'
import { useUserStore } from '@/stores/user'
const userStore = useUserStore()


reLoginUser().then(res=>{
   userStore.setUser(res.data);
})

</script>

<template>
  <!-- <router-view></router-view> -->
    <router-view v-slot="{ Component }">
        <transition name="fade">
            <component :is="Component" />
        </transition>
    </router-view>
</template>

<style scoped>
</style>
